﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Model;
using System.Runtime.Serialization;

namespace Server.Service.Model
{
    [DataContract]
    public class WCFBatteryType
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Description { get; set; }
        [DataMember]
        public List<WCFCarModel> CarModels { get; set; }
        [DataMember]
        public List<WCFBattery> Batteries { get; set; }
        [DataMember]
        public List<WCFPartReservation> PartReservations { get; set; }

        public WCFBatteryType(BatteryType batterytype)
        {
            this.Id = batterytype.Id;
            this.Name = batterytype.Name;
            this.Description = batterytype.Description;

            CarModels = new List<WCFCarModel>();
            Batteries = new List<WCFBattery>();
            PartReservations = new List<WCFPartReservation>();
        }
    }
}
